package com.qianda.qdminiapp.domain.model.order;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 充值订单表
 * </p>
 *
 * @author cw
 * @since 2019-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class QqdOrderRecharge extends Model<QqdOrderRecharge> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单主表id
     */
    private Long orderId;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 用户id
     */
    private Long userId;
    private Long accountId;

    /**
     * 业务状态：0-充值中、1-充值成功、2-充值失败、3-充值退款中、4-充值退款成功、5-充值退款失败
     */
    private Integer orderState;

    /**
     * 充值金额
     */
    private BigDecimal rechargeAmt;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态 0:正常  1：删除
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 修改人
     */
    private Long updateBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
